FROM ubuntu:20.04

RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list

RUN apt-get clean && \
    apt-get update -yqq 
RUN apt-get install -y tzdata

RUN apt-get install -y git
RUN git config --global i18n.commitencoding utf-8  #注释：该命令表示提交命令的时候使用utf-8编码集提交
RUN git config --global i18n.logoutputencoding utf-8 #注释：该命令表示日志输出时使用utf-8编码集显示
RUN export LESSCHARSET=utf-8  #注释：设置LESS字符集为utf-8

RUN apt-get install -y nodejs npm
RUN npm config set registry https://registry.npm.taobao.org

RUN npm install -g gitbook-cli
RUN gitbook -V
CMD ["/bin/bash"]
